package com.cyxy.ojbackendmodel.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@TableName(value = "question")
@Data
//题目实体类
public class Question implements Serializable {
    //id
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    //标题
    private String title;

    //内容
    private String content;

    //标签列表（json 数组）
    private String tags;

    //题目答案
    private String answer;

    //判题用例（json 数组）
    private String judgeCase;

    //判题配置（json 对象）
    private String judgeConfig;

    //创建用户 id
    private Long userId;

    //创建时间
    private Date createTime;

    //更新时间
    private Date updateTime;

    //是否删除
    @TableLogic
    private Integer isDelete;

    //唯一标识
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}